package com.dly.blog.domain.vo.menu;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dly.blog.domain.ro.menu.RouterQuery;
import com.dly.blog.domain.ro.permission.PermissionAddRO;
import com.dly.blog.meta.MetaObject;
import java.io.Serializable;
import java.io.Serial;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author DLY
 * @since 2024-11-14 11:16:12
 */
@Data
@Schema(name = "MenuVO", description = "菜单表返回对象")
public class MenuVO {

    private String id;

    private String parentId;

    private String menuName;

    private String menuType;

    private String routeName;

    private String routePath;

    private String icon;

    private String iconType;

    @Schema(description = "国际化名称")
    private String i18nKey;

    @Schema(description = "状态")
    private String status;

    @Schema(description = "排序")
    private Integer order;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "是否缓存路由")
    private Integer keepAlive;

    @Schema(description = "是否是常量路由")
    private Integer constant;

    @Schema(description = "外部链接")
    private String href;

    @Schema(description = "是否在菜单中隐藏")
    private Integer hideInMenu;

    @Schema(description = "路由不在菜单中")
    private String activeMenu;

    @Schema(description = "是否是多tap页")
    private Integer multiTab;

    @Schema(description = "固定位置")
    private Integer fixedIndexInTab;

    @Schema(description = "路径参数")
    private List<RouterQuery> query;

    @Schema(description = "子页面")
    private List<MenuVO> children;

    @Schema(description = "按钮权限")
    private List<PermissionAddRO> buttons;

}